import { request } from "../../request/request.js";
Page({
  data: {
    swiperList: [],
  },
  onLoad: function (options) {
    this.getLunbo();
  },
  async getLunbo() {
    const res = await request({ url: "/home/swiperdata" });
    console.log(res);
    this.setData({
      swiperList: res.data.message,
    });
  },
  onReady: function () {
    //Do some when page ready.
  },
  onShow: function () {
    //Do some when page show.
  },
  onHide: function () {
    //Do some when page hide.
  },
  onUnload: function () {
    //Do some when page unload.
  },
  onPullDownRefresh: function () {
    //Do some when page pull down.
  },
});
